package com.baseframe.oss.template;

import com.baseframe.oss.entity.Oss;
import com.baseframe.oss.entity.OssFile;
import com.baseframe.oss.execption.OssException;

import java.io.InputStream;

public class UnknownOssTemple extends AbstractOssTemplate{
    public UnknownOssTemple(Oss oss) {
        super(oss);
    }

    @Override
    public OssFile putFile(String originalName, InputStream inputStream) {
        throw new OssException("未知平台对象存储服务,文件推送失败~");
    }

    @Override
    public boolean DeleteFile(String fileName) {
        throw new OssException("未知平台对象存储服务,文件推送失败~");
    }

    @Override
    public String getFileLink(String fileKey) {
        throw new OssException("未知平台对象存储服务,文件推送失败~");
    }
}
